Conversation
.gitignore
Outdated
|
|
||
| /config/locales/database.yml.example | ||
| /config/locales/secrets.yml | ||
|
|
There was a problem hiding this comment.
file này k có j thay đổi em checkout ra khỏi pull giúp anh nhé
There was a problem hiding this comment.
checkout ra khỏi pull là như nào a?
Gemfile
Outdated
| @@ -10,6 +10,8 @@ end | |||
| gem 'rails', '~> 5.0.2' | |||
| # Use sqlite3 as the database for Active Record | |||
| gem 'sqlite3' | |||
There was a problem hiding this comment.
sử dụng nháy kép cho tất cả em nhé
Gemfile
Outdated
| @@ -10,6 +10,8 @@ end | |||
| gem 'rails', '~> 5.0.2' | |||
| # Use sqlite3 as the database for Active Record | |||
There was a problem hiding this comment.
xóa tất cả commetn trong file này giúp anh nhé
| @@ -0,0 +1,3 @@ | |||
| # Place all the behaviors and hooks related to the matching controller here. | |||
There was a problem hiding this comment.
file này k dùng em xóa đi nhé
| @@ -0,0 +1,3 @@ | |||
| // Place all the styles related to the StaticPages controller here. | |||
| <%= csrf_meta_tags %> | ||
|
|
||
| <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> | ||
| <%= stylesheet_link_tag 'application', media: 'all', |
There was a problem hiding this comment.
sử dụng nháy kép, 1 dấu cách để ngăn thôi nhé
| <%= link_to "sample app", '#', id: "logo" %> | ||
| <nav> | ||
| <ul class="nav navbar-nav navbar-right"> | ||
| <li><%= link_to "Home", '#' %></li> |
app/views/static_pages/help.html.erb
Outdated
| @@ -0,0 +1,9 @@ | |||
| <% provide(:title, "Help") %> | |||
app/views/static_pages/home.html.erb
Outdated
|
|
||
| <%= link_to image_tag("rails.png", alt: "Rails logo"), | ||
| 'http://rubyonrails.org/' %> | ||
|
|
There was a problem hiding this comment.
xóa dòng này đi k đẻ làm j cả
app/views/static_pages/home.html.erb
Outdated
| </div> | ||
|
|
||
| <%= link_to image_tag("rails.png", alt: "Rails logo"), | ||
| 'http://rubyonrails.org/' %> |
1cf62f9 to
7414fe6
Compare
| # Ignore Byebug command history file. | ||
| .byebug_history | ||
|
|
There was a problem hiding this comment.
checkout file này ra khỏi pull
app/assets/stylesheets/custom.scss
Outdated
| } | ||
|
|
||
|
|
||
|
|
There was a problem hiding this comment.
chỉ dugnf 1 dòng để ngăn cách thôi nhé xóa 2 dòng đi
app/helpers/application_helper.rb
Outdated
| @@ -1,2 +1,11 @@ | |||
| module ApplicationHelper | |||
|
|
|||
| def full_title(page_title = '') | |||
There was a problem hiding this comment.
xóa () + sử dụng nháy kép
|
|
||
| <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> | ||
| <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> | ||
| <%= stylesheet_link_tag "application", media: "all", |
There was a problem hiding this comment.
1 dấu cashc để ngăn sau cái tag kìa em ơi
| <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> | ||
| <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> | ||
| <%= stylesheet_link_tag "application", media: "all", | ||
| "data-turbolinks-track": "reload" %> |
There was a problem hiding this comment.
ident, lùi so với đầu dòng nhé
app/views/static_pages/home.html.erb
Outdated
| </div> | ||
|
|
||
| <%= link_to image_tag("rails.png", alt: "Rails logo"), | ||
| 'http://rubyonrails.org/' %> |
config/database.yml
Outdated
| @@ -0,0 +1,25 @@ | |||
| # SQLite version 3.x | |||
There was a problem hiding this comment.
file này cho vào gitignore mà, k pushs nó lên em ơi
config/routes.rb
Outdated
| @@ -1,3 +1,6 @@ | |||
| Rails.application.routes.draw do | |||
| # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html | |||
| root 'static_pages#home' | |||
config/routes.rb
Outdated
| Rails.application.routes.draw do | ||
| # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html | ||
| root 'static_pages#home' | ||
| get 'static_pages/home' |
There was a problem hiding this comment.
1 dấu cách để ngăn như viết WORD em ơi
config/routes.rb~
Outdated
| @@ -0,0 +1,7 @@ | |||
| Rails.application.routes.draw do | |||
There was a problem hiding this comment.
file này xóa đi bị ooix rồi
7414fe6 to
b85aee3
Compare
| <html> | ||
| <head> | ||
| <title>RubyK59</title> | ||
| <title><%= full_title(yield(:title)) %></title> |
No description provided.